<?php

class Chinhanh_model extends CI_Model
{
    private $tbl_chinhanh = 'gs7s_contact_chinhnhanh';
  public function __construct()
  {
    parent::__construct();
    $this->load->database();
  }
  public function loadData()
  {
    $b= $this->db->get($this->tbl_chinhanh);
    return $b->result_array();
  }
  public function load_chinhanh($a){
      $query = $this->db->get_where($this->tbl_chinhanh,array('id'=>$a));
      return $query->result_array();
  }
  /*  public function load_db(){
      $this->db->select('id,diachi,dienthoai');
      $query=  $this->db->query('gs7s_contact_chinhnhanh');
      return $query->result_array;              
  }*/
}
